package com.myth;

import org.junit.Test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

public class HelloWork {
    public static int aa = 1;
    public static void aa(){
        System.out.println(aa);
    }


    public static void main(String[] args) throws ParseException {

////        int i = 0;
//        for (int i = 0; i < 10; i++) {
//
//            System.out.println(i);
//        }
//        System.out.println(args+"args1");
//        System.out.println(args+"args2");
//        System.out.println(args+"args3");
//
//        int a = 5;
//        int b = 15;
//        a = b+(b=a)*0;
//        System.out.println(a);
//        System.out.println(b);
//
//
//        Map<String,Object> map = new HashMap<>();
//        map.put("1",1);
//        map.put("2",2);
//
//        System.out.println(map.get("3"));
//
//        String n = "1";
//        n = "2";
//        System.out.println(n);



        SimpleDateFormat ft = new SimpleDateFormat("yyyyMMddHHmmss");
        String dateStr = ft.format(new Date());
        System.out.println(dateStr);
        Date nowDate = ft.parse(dateStr);
        System.out.println(nowDate);



    }

    @Test
    public void test(){

        Person person = new Person();
        List<Person> list = new ArrayList<>();
        for (int j = 0; j < 10; j++) {
            person.setA(j);
            list.add(person);
//            System.out.println(i);

        }
        System.out.println(list.toString());
    }

    class Person {
        private Integer a;

        public Integer getA() {
            return a;
        }

        public void setA(Integer a) {
            this.a = a;
        }

        @Override
        public String toString() {
            return "ppp{" +
                    "a=" + a +
                    '}';
        }
    }
}
